<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <script type="text/javascript" src="../internal.js"></script>
    <script src="http://open.web.meitu.com/sources/xiuxiu.js" type="text/javascript"></script>
</head>
<body style="height: 390px;">
	<div id="altContent"></div>
</body>
</html>
<script type="text/javascript" src="../tangram.js"></script>
<script type="text/javascript">
window.onload = function(){
	xiuxiu.embedSWF("altContent", 3, "100%", "100%");
	/* 第1个参数是加载编辑器div容器，第2个参数是编辑器类型，第3个参数是div容器宽，第4个参数是div容器高 */
	xiuxiu.setUploadURL("${domain}/wcm/common/resource/upload.do");// 修改为您自己的上传接收图片程序
	xiuxiu.setUploadType(2);
	xiuxiu.setUploadArgs({
		isResize : false,
		isWatermark : false
	});
	xiuxiu.onInit = function() {

	};
	xiuxiu.onUploadResponse = function(data) {
		var rs = eval("["+data+"]")[0];
		editor.execCommand( 'insertimage', {
			src : rs.output.filePath
		});
		dialog.close();
	};
	dialog.onok = function(){
		alert("请点击上方的保存与分享，然后再保存图片！");
		return false;
	}
};
</script>